#ifndef HEXEDITOR_H_INCLUDED
#define HEXEDITOR_H_INCLUDED

#include <M_Code_plugin.h>

class ProjectFile;

class HexEditor : public M_Code_Plugin {
  public:
    HexEditor();
    virtual ~HexEditor();
    void NotifyEditorOpened( EditorBase* );
  protected:
    virtual void BuildModuleMenu( const ModuleType type, wxMenu* menu, const FileTreeData* data = 0 );
    virtual bool BuildToolBar( wxToolBar* toolBar );
    virtual void OnAttach();
    virtual void OnRelease( bool appShutDown );
    void OnOpenHexEdit( wxCommandEvent& event );
    void OnOpenHexEditFileBrowser( wxCommandEvent& event );
    void OnOpenWithHE( wxCommandEvent& event );
    void CloseMyEditors();
    void OpenProjectFile( ProjectFile* file );
    void OpenFileFromName( const wxString& fileName );
    ProjectFile* FindProjectFile( const wxString& fileName );
    wxString m_browserselectedfile;
    DECLARE_EVENT_TABLE()
};

#endif
